package grafica;

import java.awt.Graphics;

public class Energia2 extends EnergiaGrafica {

	public Energia2(int x, int y, int width, int height, int energia) {
		super(x, y, width, height, energia);
	}

	protected void disegnaBordo(Graphics g) {
		g.drawOval(getX(), getY() + getHeight() - 1, getWidth(), getHeight());
	}

	protected void disegnaRiempimento(Graphics g) {
		g.fillArc(getX(), getY() + getHeight() - 1, getWidth(), getHeight(),
				90, -360 * getEnergia() / getMaxEnergia());
	}

}
